<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN" manifest="/misc/wei_cache_new.manifest">
<head>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
	<meta name="format-detection" content="telephone=no" />
	<title></title>
	<link rel="stylesheet" type="text/css" href="${ctxStatic}/member/themes/expand/css/user.css" />
	<script type="text/javascript" src="${ctxStatic}/member/themes/expand/js/jquery-1.7.2.min.js"></script>	
	
	<style type="text/css">	
		.message-btn211 {background: #13c7ae;}
	</style>
	<script type="text/javascript">
		function del(prizeId,prizeLottery){
			if(confirm("您确定要放弃现有的奖品吗？")){
				location.href='${ctxFront}/expand/deleteMyGoods?uid=${uid}&wechatId=${wechatId}&delID='+prizeId+'&type='+prizeLottery;
			}
		}
	</script>
</head>
<body>
<div class="body">

<div class="backg">
	<div id="city" style="margin-bottom: 5px;">
    	<p class="backp">请您在有效期内到指定地方兑换</p>
		<c:forEach items="${ myGoodsList }" var="prize" varStatus="i">
			<c:if test="${prize.exchange_id eq 13}">
				<section class="w-goods"><div class="w-gooa"><ul>
				<li class="title" style="width: 70%;">
					<c:if test="${prize.status eq 0 }">
						<a href="${ctxFront}/expand/qrcode?uid=${uid}&wechatId=${wechatId}&style=${style}&codeID=${prize.qrcode_id}&topage=${topage}&name=${prize.name}&userId=${prize.user_id}">
							<span class="item-name">
					            ${fn:substring(prize.name,0,6)}<c:if test="${fn:length(prize.name)>6 }">...</c:if>
							</span>
							<span style="color: #999999;font-size:12px;">(积分兑换)</span>
						</a>
					</c:if>
				</li>
				<li class="others">
					<c:if test="${prize.status eq 0 }">
						<c:if test="${prize.end_time  le  0  }">已过期</c:if>
						<c:if test="${prize.end_time gt  0  }">
							<ins>剩余天数：<fmt:formatNumber type="number" value="${prize.end_time }" maxFractionDigits="0"/>天</ins>
						</c:if>
					</c:if>
					<%-- <input class="message-btn211" value="放弃" type="button" onclick="del(${prize.id},'exchange')" > --%>
				</li>
			</ul></div></section>
			</c:if>
			
		</c:forEach>
   
		<c:if test="${empty myGoodsList}">
			<section class="w-goods" style="border-bottom:0px;">
				<div class="w-gooa" style="color:red; text-align: center;margin-to:30px;">您暂无我的物品</div>
			</section>
		</c:if>
	</div>
</div>

	<footer class="footer" style="bottom: 0px; " onclick="location='http://www.hdzhx.com/me/microengine/index.html#page1'">
		<section class="w-goods" style=" padding-top: 10px;">
			<img src="${ctxStatic}/member/themes/expand/img/me.jpg" width="100px">		
		</section>
	</footer>
</div>
</body>
</html>
